@{
    Layout=null;
}
@using Mall.Models;
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电子商城系统</title>
    <link rel="stylesheet" href="Base.css">
</head>
<body>
   @if (Model==null)
   {
       <p>商品名称</p>
        <input type="text" >
        <p>供应商名称</p>
        <input type="text" >
        <p>价格</p>
        <input type="text" >
        <p>库存数量</p>
        <input type="text" >
        <p>备注</p>
        <input type="text" >
   }else{
       @foreach (Product item in Model)
       {
           
        <p>商品名称</p>
        <input type="text" value="@item.Id"  >
        <p>供应商名称</p>
        <input type="text" value="@item.ProductName">
        <p>价格</p>
        <input type="text"  value="@item.Price">
        <p>库存数量</p>
        <input type="text" value="@item.Stock">
        <p>备注</p>
        <input type="text" value="@item.Remarks" >
       }
   }
</body>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/Base.js"></script>

</html>